home *** CD-ROM | disk | FTP | other *** search
/ IRIX Installation Tools & Overlays 2002 November / SGI IRIX Installation Tools & Overlays 2002 November - Disc 4.iso / dist / motif21_dev.idb / usr / Motif-2.1 / include / Xm / MenuShellP.h.z / MenuShellP.h
C/C++ Source or Header  |  2002-10-15  |  3KB  |  129 lines

  1. /* 
  2.  *  @OSF_COPYRIGHT@
  3.  *  COPYRIGHT NOTICE
  4.  *  Copyright (c) 1990, 1991, 1992, 1993 Open Software Foundation, Inc.
  5.  *  ALL RIGHTS RESERVED (MOTIF). See the file named COPYRIGHT.MOTIF for
  6.  *  the full copyright text.
  7. */ 
  8. /* 
  9.  * HISTORY
  10. */ 
  11. /* $XConsortium: MenuShellP.h /main/11 1995/07/13 17:36:37 drk $ */
  12. /* (c) Copyright 1989, DIGITAL EQUIPMENT CORPORATION, MAYNARD, MASS. */
  13. /* (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 HEWLETT-PACKARD COMPANY */
  14. #ifndef _XmMenuShellP_h
  15. #define _XmMenuShellP_h
  16.  
  17. #include <Xm/MenuShell.h>
  18. #include <Xm/XmP.h>
  19. #include <X11/ShellP.h>
  20.  
  21. #ifdef __cplusplus
  22. extern "C" {
  23. #endif
  24.  
  25. #ifdef _SGIMOTIF
  26.  
  27. typedef struct __SG_XmMenuShellExtPart {
  28.         
  29.   Window  drop_shadow; 
  30.   Boolean   draw_drop_shadow;
  31.   Colormap shadow_cmap;
  32.  
  33. }_SG_XmMenuShellExtPart;
  34.  
  35. typedef struct __SG_XmMenuShellExt {
  36.         
  37.   _SgInstanceExtensionRec     common; /* common stuff */
  38.   _SG_XmMenuShellExtPart      instance; /*Resources & instance vars */
  39.  
  40. }_SG_XmMenuShellExtRec, *_SG_XmMenuShellExt;
  41.    
  42. #define _SG_MenuShellPtr(w) \
  43. ((_SG_XmMenuShellExt)(((XmMenuShellWidget)(w))->menu_shell._SG_vendorExtension))
  44.  
  45. #endif /* _SGIMOTIF */
  46.  
  47. /* The MenuShell instance record */
  48.  
  49. typedef struct 
  50. {
  51.     unsigned char        focus_policy;
  52.     XmFocusData            focus_data;
  53.     Boolean                 private_shell;
  54.     XmFontList              default_font_list;
  55.     XmFontList              button_font_list;
  56.     XmFontList              label_font_list;
  57.  
  58. #ifdef _SGIMOTIF
  59.     _SG_XmMenuShellExt    _SG_vendorExtension;
  60. #endif    
  61.  
  62.     XmDirection             layout_direction;
  63. } XmMenuShellPart;
  64.  
  65.  
  66. /* Full instance record declaration */
  67.  
  68. typedef  struct _XmMenuShellRec 
  69. {
  70.     CorePart            core;
  71.     CompositePart        composite;
  72.     ShellPart            shell;
  73.     OverrideShellPart        override;
  74.     XmMenuShellPart        menu_shell;
  75. } XmMenuShellRec;
  76.  
  77. typedef  struct _XmMenuShellWidgetRec /* OBSOLETE (for compatibility only).*/
  78. {
  79.     CorePart            core;
  80.     CompositePart        composite;
  81.     ShellPart            shell;
  82.     OverrideShellPart        override;
  83.     XmMenuShellPart        menu_shell;
  84. } XmMenuShellWidgetRec;
  85.  
  86.  
  87.  
  88. /* MenuShell class structure */
  89.  
  90. typedef struct 
  91. {
  92.     XtActionProc    popdownOne;         /* unpost portion or all of menu */
  93.     XtActionProc    popdownEveryone; /* unpost portion of menu */
  94.     XtActionProc    popdownDone;     /* unpost all menus */
  95.     XmMenuPopupProc popupSharedMenupane; /* post shared menus */
  96.                          /* (should be popupSharedMenuShell) */
  97.     XtPointer        extension;         /* Pointer to extension record */
  98.  
  99. #ifdef _SGIMOTIF
  100.     _SgClassExtension    _SG_vendorExtension;
  101. #endif
  102.  
  103. } XmMenuShellClassPart;
  104.  
  105.  
  106. /* Full class record declaration */
  107.  
  108. typedef struct _XmMenuShellClassRec 
  109. {
  110.     CoreClassPart        core_class;
  111.     CompositeClassPart        composite_class;
  112.     ShellClassPart        shell_class;
  113.     OverrideShellClassPart  override_shell_class;
  114.     XmMenuShellClassPart    menu_shell_class;
  115. } XmMenuShellClassRec;
  116.  
  117.  
  118. externalref XmMenuShellClassRec  xmMenuShellClassRec;
  119.  
  120. #define MS_FocusPolicy(m) \
  121.     (((XmMenuShellWidget)m)->menu_shell.focus_policy)
  122.  
  123. #ifdef __cplusplus
  124. }  /* Close scope of 'extern "C"' declaration which encloses file. */
  125. #endif
  126.  
  127. #endif /* _XmMenuShellP_h */
  128. /* DON'T ADD STUFF AFTER THIS #endif */
  129.